package cn.edkuir.member.service;

import cn.edkuir.member.excepton.PhoneExistException;
import cn.edkuir.member.excepton.UsernameExistException;
import cn.edkuir.member.vo.MemberLoginVo;
import cn.edkuir.member.vo.MemberRegisterVo;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.edkuir.common.utils.PageUtils;
import cn.edkuir.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author xinzi
 * @email 1228604898@qq.com
 * @date 2021-04-14 21:29:44
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo memberRegisterVo);

    void checkUniqueMobile(String phone) throws PhoneExistException;

    void checkUniqueUsername(String username) throws UsernameExistException;

    MemberEntity login(MemberLoginVo memberLoginVo);
}

